package ch.manage.movies.ui;

import javax.swing.JFrame;
import javax.swing.JTextField;
import java.awt.BorderLayout;

public class ErrorWindow extends JFrame {

	private JTextField textField;

	/**
	 * Create the application.
	 */
	public ErrorWindow(String errMessage) {
		initialize();
		textField.setText(errMessage);
	}

	/**
	 * Initialize the contents of the frame.
	 */
	private void initialize() {
		setBounds(100, 100, 450, 300);
		setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
		
		textField = new JTextField();
		add(textField, BorderLayout.CENTER);
		textField.setColumns(10);
	}

}
